package com.qiguliuxing.dts.common.type;

import lombok.Getter;

/**
 * 秒杀状态定义
 * @author qiguliuxing
 * @since 1.0.0
 */
@Getter
public enum SeckillStatusEnum {

    UN_STARTED( 0, "秒杀未开始"),
    IN_LINE(1, "秒杀排队中"),
    SECKILL_GET(2, "秒杀成功请下单"),
    ACT_END(3, "秒杀活动已结束"),
    SECKILL_FINISH(4, "秒杀参与完成"),
    SOLD_OUT(5, "该规格商品被抢光"),
    SECKILL_INTERRUPT(6, "商品被中断"),
    NOT_ENOUGH(7, "该规格商品库存不足"),
    NOT_ALLOW(8, "已经抢购过该商品，不允许再抢购"),
    TOMORROW_START( 10, "明天开始");

    private Integer status;
    private String desc;

    SeckillStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }
}
